package tichu_project252.Controller;

import tichu_project252.Model.Model;

/**
 * Implements the Base class that handlers need to inherit. 
 * 
 * <p> <b> Invariants: </b> </p>
 *
 * @author Alexandra Barka, ΑΜ: 2867, login : barka.
 * @author Euaggelia Petauraki AM: 2875 login: petavraki.
 * @version %I%, %G%
 */
public class Controller {

    protected Model m;
    /**
     * Initializes the controller by setting the model's reference.
     * 
     * <p><b>Constructor: </b> Controller(Model m)</p>
     *
     * <p><b>Precondition: </b> There is a model </p> <p><b>Postcondition:
     * </b> constructs a valid controller </p>
     * 
     * @param m the model
     */
    public Controller(Model m) {
        this.m = m;
    }
}
